#include "app.h"

static int8_t app_drv_init(void)
{
    int8_t ret = SUCCESS;
    ret |= hal_serial_init();
    ret |= hal_servo_init(20000);
    ret |= hal_led_pwm_init();
    hdl_flash_init();
    return SUCCESS;
}

static int8_t app_peri_init(void)
{
    int8_t ret = SUCCESS;
    hal_led_pwm_set(90);
    return SUCCESS;
}


int8_t apl_main_init(void)
{
    app_drv_init();
    app_peri_init();
    return SUCCESS;
}

